package net.sf.rose.jdbc.service;

import net.sf.rose.file.scan.ClassFilter;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.View;
import net.sf.rose.jdbc.bean.annotation.Views;

public class MetaClassFilter implements ClassFilter {

    @Override
    public boolean accept(Class<?> clazz) {
        // System.out.println(clazz.getName());
        if (clazz.getAnnotation(Table.class) != null) {
            return true;
        } else if (clazz.getAnnotation(View.class) != null) {
            return true;
        } else if (clazz.getAnnotation(Views.class) != null) {
            return true;
        }
        return false;
    }
}